package com.m7788.util;

import android.content.Context;

import com.netease.LDNetDiagnoService.LDNetDiagnoListener;

/**
 * Created by gxchen on 2018/6/11.
 */

public class StartDiagnoseNetRunnable implements Runnable{
    private String mDomainName;
    private Context mContext;
    private LDNetDiagnoListener mLdNetDiagnoListener;
    public static final int TYPE_NETWORK = 1;
    public static final int TYPE_JS = 2;
    private int mType;

    public StartDiagnoseNetRunnable(String mDomainName, Context mContext,LDNetDiagnoListener mLdNetDiagnoListener,int type) {
        this.mDomainName = mDomainName;
        this.mContext = mContext;
        this.mLdNetDiagnoListener = mLdNetDiagnoListener;
        this.mType = type;
    }

    @Override
    public void run() {
//        if(mType == TYPE_NETWORK){
//            NetDiagnosesUtil.startDiagnoses(mContext,mDomainName,mLdNetDiagnoListener);
//        }else{
//            NetDiagnosesUtil.startDiagnossToJs(mContext,mDomainName,mLdNetDiagnoListener);
//        }
    }
}
